package com.youlu.campus.admin.banner.service;

import com.youlu.campus.admin.banner.dto.BannerConfigUpdateRequest;
import com.youlu.campus.admin.banner.entity.BannerConfig;
import org.springframework.data.domain.Page;

import java.util.List;

public interface BannerConfigService {

    boolean create(BannerConfig bannerConfig);

    boolean update(BannerConfig bannerConfig);

    boolean delete(String id);

    Page<BannerConfig> list(BannerConfig bannerConfig, Integer pageSie, Integer page);

    boolean updateStatus(BannerConfigUpdateRequest updateRequest);

    BannerConfig findOne(String id);

    List<BannerConfig> findBy(String location);

    List<BannerConfig> findByLocations(List<String> locationList);
}
